Skip to content

Conversation

@Maetveis
Copy link
Contributor

The Intel C++ compiler requires linker flags to be wrapped, because CMake passes them through the compiler driver.
Prefix Linker options with ${CMAKE_CXX_LINKER_WRAPPER_FLAG}. This variable is set to the option to pass a linker flag through the compiler driver by CMake. For MSVC and clang-cl or IntelLLVM pre cmake 3.25 this will be empty, so the patch will work in these cases too.

Fixes: #205

The Intel C++ compiler requires linker flags to be wrapped, because
CMake passes them through the compiler driver.
Prefix Linker options with `${CMAKE_CXX_LINKER_WRAPPER_FLAG}`.
This variable is set to the option to pass a linker flag through the
compiler driver by CMake. For MSVC and clang-cl or IntelLLVM pre cmake
3.25 this will be empty, so the patch will work in these cases too.

Fixes: oneapi-src#205
Signed-off-by: Gergely Meszaros <[email protected]>
@lisanna-dettwyler lisanna-dettwyler merged commit b757f43 into oneapi-src:master Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unescaped linker flags when building with the Intel C++ Compiler on Windows and CMake > 3.25

2 participants